//
//  SectionOneCell.m
//  halfSweat
//
//  Created by 甘伟杰 on 16/5/13.
//  Copyright © 2016年 ganweijie. All rights reserved.
//

#import "SectionOneCell.h"
#import "SectionOneButton.h" // JSpath bugHD
#import "RowItem.h"

@interface SectionOneCell ()

@property (weak, nonatomic) IBOutlet SectionOneButton *leftButton;

@property (weak, nonatomic) IBOutlet SectionOneButton *rightButton;

@end

@implementation SectionOneCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
}

+ (instancetype) viewForNib {
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] firstObject];
}

- (void)setRowItem:(RowItem *)rowItem {
    _rowItem = rowItem;

    [_leftButton setImage:rowItem.leftImage forState:UIControlStateNormal];
    [_rightButton setImage:rowItem.rightImage forState:UIControlStateNormal];
    
    [_leftButton setTitle:rowItem.leftTitle forState:UIControlStateNormal];
    [_rightButton setTitle:rowItem.rightTitle forState:UIControlStateNormal];
}


@end
